import bsddb
import time

db = bsddb.btopen('docid.db','c')
start_t = time.time()
for i in range(100):
    db['http://csl.cpe.ku.ac.th/%s'%i] = '%s' % i

print time.time()-start_t


